package com.zhou;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//自动装配该包下的所有Mapper，省的在mapper类上加@Mapper的注解了，不管mybatis采用的是注解还是xml方式，都要用@MapperScan或者@Mapper
//@MapperScan("com.zhou.mapper,com.zhou.learn.static_dao")
@SpringBootApplication
//开启事物注解
@EnableTransactionManagement
public class SpringBootBillApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringBootBillApplication.class, args);
	}
}
